package com.digitalchina.lxnsy.entity;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.io.Serializable;
import java.util.List;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.entity
 * 创建人：郑皓
 * 创建时间：2017/7/22 15:52
 * 修改备注：
 * ================================================
 */
public class QuestionTypeVO implements Serializable, IPickerViewData {


    /**
     * code : 001
     * name : 种植
     * researchFieldTwoStages : [{"code":"001005","name":"木材","researchDirectionVos":[{"code":"00100105","name":"喷药"}],"researchFieldThreeStageVos":[{"code":"001001008","name":"柏树"},{"code":"001001009","name":"红杉"}]},{"code":"001004","name":"水果","researchDirectionVos":[],"researchFieldThreeStageVos":[{"code":"001001012","name":"葡萄"},{"code":"001001013","name":"香蕉"},{"code":"001001011","name":"梨"},{"code":"001001010","name":"苹果"}]},{"code":"001003","name":"蔬菜","researchDirectionVos":[],"researchFieldThreeStageVos":[]}]
     */

    private String code;
    private String name;
    private List<ResearchFieldTwoStagesBean> researchFieldTwoStages;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ResearchFieldTwoStagesBean> getResearchFieldTwoStages() {
        return researchFieldTwoStages;
    }

    public void setResearchFieldTwoStages(List<ResearchFieldTwoStagesBean> researchFieldTwoStages) {
        this.researchFieldTwoStages = researchFieldTwoStages;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    public static class ResearchFieldTwoStagesBean implements Serializable, IPickerViewData {
        /**
         * code : 001005
         * name : 木材
         * researchDirectionVos : [{"code":"00100105","name":"喷药"}]
         * researchFieldThreeStageVos : [{"code":"001001008","name":"柏树"},{"code":"001001009","name":"红杉"}]
         */

        private String code;
        private String name;
        private List<ResearchDirectionVosBean> researchDirectionVos;
        private List<ResearchFieldThreeStageVosBean> researchFieldThreeStageVos;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<ResearchDirectionVosBean> getResearchDirectionVos() {
            return researchDirectionVos;
        }

        public void setResearchDirectionVos(List<ResearchDirectionVosBean> researchDirectionVos) {
            this.researchDirectionVos = researchDirectionVos;
        }

        public List<ResearchFieldThreeStageVosBean> getResearchFieldThreeStageVos() {
            return researchFieldThreeStageVos;
        }

        public void setResearchFieldThreeStageVos(List<ResearchFieldThreeStageVosBean> researchFieldThreeStageVos) {
            this.researchFieldThreeStageVos = researchFieldThreeStageVos;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }

        public static class ResearchDirectionVosBean implements Serializable, IPickerViewData {
            /**
             * code : 00100105
             * name : 喷药
             */

            private String code;
            private String name;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            @Override
            public String getPickerViewText() {
                return name;
            }
        }

        public static class ResearchFieldThreeStageVosBean implements Serializable, IPickerViewData {
            /**
             * code : 001001008
             * name : 柏树
             */

            private String code;
            private String name;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            @Override
            public String getPickerViewText() {
                return name;
            }
        }
    }
}
